package com.threefish.modules.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 黄川 huchuc@vip.qq.com
 * @date: 2018/9/6
 */
@Controller
@RequestMapping(value = "/main")
public class PlatformController {

    @GetMapping("/platform")
    public String platform(HttpServletRequest request) {
        return "platformIndex.html";
    }

    @GetMapping("/error")
    public String error(HttpServletRequest request) {
        throw new RuntimeException("出错了");
    }

}
